package com.ruoyi.backend.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class InverseInfoDTO {

    public interface Inverse {
    }
    /**
     * 参数：
     *  mineId: 矿山ID
     *  dataTime: 数据时间(需要规定时间格式:精度为天即可)
     *  SpatialCoverage: 空间覆盖范围
     *  ecologicalIdList: 生态参量反演ID列表
     */
    @NotNull(groups = Inverse.class)
    private String mineId;

    @NotNull(groups = Inverse.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate dataTime;

    @NotNull(groups = Inverse.class)
    private String SpatialCoverage;

    @NotNull(groups = Inverse.class)
    private String ecologicalIdList;
}
